﻿namespace UnityTest
{
    public interface ISqlHelper
    {
        string SqlConnection();
    }

    public interface IOtherHelper
    {
        string GetSqlConnection();
    }


    public class MssqlHelper : ISqlHelper
    {
        public string SqlConnection()
        {
            return "this mssql.";
        }
    }


    public class MyOtherHelper : IOtherHelper
    {
        ISqlHelper sql;
        public MyOtherHelper(ISqlHelper sql)
        {
            this.sql = sql;
        }
        public string GetSqlConnection()
        {
            return this.sql.SqlConnection();
        }
    }
}